gdk: Move code around
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Nov 2017 21:22:21 +0000 (16:22 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Nov 2017 21:22:21 +0000 (16:22 -0500)
Move the gdk_display functions to gdkdisplay.c.
They are misplaced in gdkevents.c.

gdk/gdkdisplay.c
gdk/gdkevents.c

index ae09c253398ecc847b7e369d3d29b08f72e9d86d..e4a19e1f7aac0039d5fa19229eaddbaa378718ad 100644 (file)
@@ -2025,3 +2025,39 @@ gdk_display_get_last_seen_time (GdkDisplay *display)
   return GDK_CURRENT_TIME;
 }
 
+/**
+ * gdk_display_set_double_click_time:
+ * @display: a #GdkDisplay
+ * @msec: double click time in milliseconds (thousandths of a second)
+ *
+ * Sets the double click time (two clicks within this time interval
+ * count as a double click). Applications should not set this, it is a global
+ * user-configured setting.
+ *
+ * Since: 2.2
+ **/
+void
+gdk_display_set_double_click_time (GdkDisplay *display,
+                                   guint       msec)
+{
+  display->double_click_time = msec;
+}
+
+/**
+ * gdk_display_set_double_click_distance:
+ * @display: a #GdkDisplay
+ * @distance: distance in pixels
+ *
+ * Sets the double click distance (two clicks within this distance
+ * count as a double click). See also gdk_display_set_double_click_time().
+ * Applications should not set this, it is a global
+ * user-configured setting.
+ *
+ * Since: 2.4
+ **/
+void
+gdk_display_set_double_click_distance (GdkDisplay *display,
+                                       guint       distance)
+{
+  display->double_click_distance = distance;
+}
index 32e7c506babcabec12f8e3a8bcd8a68a10320bd8..6bfd25a49c75bee6d4c5cad7a582cc1b20c0b9d3 100644 (file)
@@ -2205,43 +2205,6 @@ gdk_synthesize_window_state (GdkWindow     *window,
   _gdk_set_window_state (window, (window->state | set_flags) & ~unset_flags);
 }
 
-/**
- * gdk_display_set_double_click_time:
- * @display: a #GdkDisplay
- * @msec: double click time in milliseconds (thousandths of a second) 
- * 
- * Sets the double click time (two clicks within this time interval
- * count as a double click). Applications should not set this, it is a global
- * user-configured setting.
- *
- * Since: 2.2
- **/
-void
-gdk_display_set_double_click_time (GdkDisplay *display,
-                                  guint       msec)
-{
-  display->double_click_time = msec;
-}
-
-/**
- * gdk_display_set_double_click_distance:
- * @display: a #GdkDisplay
- * @distance: distance in pixels
- * 
- * Sets the double click distance (two clicks within this distance
- * count as a double click). See also gdk_display_set_double_click_time().
- * Applications should not set this, it is a global 
- * user-configured setting.
- *
- * Since: 2.4
- **/
-void
-gdk_display_set_double_click_distance (GdkDisplay *display,
-                                      guint       distance)
-{
-  display->double_click_distance = distance;
-}
-
 G_DEFINE_BOXED_TYPE (GdkEvent, gdk_event,
                      gdk_event_copy,
                      gdk_event_free)